const TOKENKEY = 'heima-toutiao-tokenObj'

const saveToken = tokenObj => {
  localStorage.setItem(TOKENKEY, JSON.stringify(tokenObj))
}
const removeToken = () => {
  localStorage.removeItem(TOKENKEY)
}
const getToken = () => {
  return JSON.parse(localStorage.getItem(TOKENKEY))
}
export { saveToken, removeToken, getToken }
